package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.TemperatureRecord;
import com.zhijian.medical.entity.vo.request.TemperatureRecordSearchVo;
import com.zhijian.medical.entity.vo.response.TemperatureRecordVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 温度记录 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-03-13 15:06:27
 */
public interface TemperatureRecordService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    TemperatureRecord selectById(Integer id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    TemperatureRecordVo selectVoById(Integer id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Integer id);

    /**
     * 新增
     *
     * @param temperatureRecord
     * @return
     */
    Long insert(TemperatureRecord temperatureRecord);

    /**
     * 更改
     *
     * @param temperatureRecord
     * @return
     */
    boolean update(TemperatureRecord temperatureRecord);

    /**
     * 总数
     *
     * @param temperatureRecordSearchVo
     * @return
     */
    Integer count(TemperatureRecordSearchVo temperatureRecordSearchVo);

    /**
     * 列表
     *
     * @param temperatureRecordSearchVo
     * @return
     */
    List<TemperatureRecordVo> selectList(TemperatureRecordSearchVo temperatureRecordSearchVo);

    /**
     * 分页查询
     *
     * @param temperatureRecordSearchVo
     * @return
     */
    Page<TemperatureRecordVo> selectPage(TemperatureRecordSearchVo temperatureRecordSearchVo);
}